﻿/*
 * Created by SharpDevelop.
 * User: IEscarro
 * Date: 8/25/2009
 * Time: 5:01 PM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;
using System.Windows.Forms;

namespace Buaya.Util
{
	/// <summary>
	/// Description of MessageService.
	/// </summary>
	public class MessageService
	{
		public MessageService()
		{
		}
		
		public static DialogResult ShowWarning(string text)
		{
			return Show(text, "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
		}
		
		public static DialogResult ShowError(string text)
		{
			return Show(text, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
		}
		
		public static DialogResult ShowInfo(string text)
		{
			return Show(text, "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
		}
		
		public static DialogResult Show(string text, string caption, MessageBoxButtons button, MessageBoxIcon icon)
		{
			return MessageBox.Show(text, caption, button, icon);
		}
	}
}
